<include file="public@header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <!-- <li class="active"><a href="{:url('AdminCategory/index')}">分类管理</a></li>-->
        <li><a href="#">预约信息展示</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="{:url('TechAdmin/yuyuesearchs')}">
        时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time"
               value="{$start_time|default=''}"
               style="width: 140px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time"
               value="{$end_time|default=''}"
               style="width: 140px;" autocomplete="off"> &nbsp; &nbsp;
        关键字:
        <input type="text" class="form-control" name="keyword" style="width: 200px;"
               value="{$keyword|default=''}" placeholder="请输入老师姓名/用户姓名/剧种/行当/流派..." width="400px">
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('TechAdmin/getyuyue')}">清空</a>
    </form>
    <form method="post" class="js-ajax-form" action="">
        <div class="table-actions">
            <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>
        </div>
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>预约人</th>
                <th>预约人手机号</th>
                <th>老师姓名</th>
                <th>老师剧种</th>
                <th>老师行当</th>
                <th>老师课时费</th>
                <th>老师手机号</th>
                <th>是否预约</th>
                <th width="180">操作</th>
            </tr>
            </thead>
            <tbody>
            <noempty name="res">
                <foreach name="res" item="vo">
                    <tr>
                        <td>{$vo.id}</td>

                        <td>
                            {$vo.stuname}
                        </td>
                        <td>
                            {$vo.userphone}
                        </td>
                        <td>
                            {$vo.techname}
                        </td>
                        <td>
                            {$vo.techjuzhong}
                        </td>
                        <td>
                            {$vo.hangdang}
                        </td>
                        <td>
                            <if condition="$vo.techprice!=0">
                                一小时{$vo.techprice}元
                                <else/>
                                未设置
                            </if>
                        </td>
                        <td>
                            {$vo.techphone}
                        </td>
                        <td>
                            {:date('Y-m-d H:i:s',$vo.dottime)}
                        </td>
                        <td>
                            <if condition="$vo.status!=0">
                               已经预约
                                <else/>
                                还没有预约
                            </if>
                        </td>
                        <td>
                                <if condition="$vo.status==0">
                                    <a href="{:url('TechAdmin/yuyue',array('id'=>$vo['id']))}" class="js-ajax-submit"> 预约</a>
                                </if>
                            <a href="{:url('TechAdmin/deleteyuyue',array('id'=>$vo['id']))}" class="js-ajax-submit">删除</a>
                        </td>
                </foreach>
            </noempty>
            </tbody>
        </table>
        <div class="table-actions">
            <button type="submit" class="btn btn-primary btn-sm js-ajax-submit">{:lang('SORT')}</button>
        </div>
        <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>